<?php
/**
 * Created by PhpStorm.
 * User: Yd-Cjh
 * Date: 2018/12/15
 * Time: 16:57
 */
namespace App\Content\Repositories;



use App\Content\Models\FookmarkModel;

class DbFookmarkRepository
{
//
    /**
     * @return FookmarkModel
     */
   public function getFookmarkModel(){
      return FookmarkModel::query();
   }

    /**
     *
     * @param $data
     * @return $this|\Illuminate\Database\Eloquent\Model
     */
   public function insertData($data){
       $data["uid"]=8;//AUID;
      return $this->getFookmarkModel()->create($data);// return FookmarkModel::query()->create($data);//$this->getFookmarkModel()->newQuery()->create($data);
   }
}